<?php 
class Zend_View_Helper_CategorySwitcher extends Zend_View_Helper_Abstract{
    private $_config;
    public function init(){}
    
    public function categorySwitcher($config = array()){
        $categoryManager = new \Managers\Category();
        $categories = $categoryManager->getEnabled();
        $this->view->categories = $categories;
        return $this->render();
    }
    
    public function render(){
        return $this->view->render('partials/content/category-switcher.phtml');
    }
    
    public function __toString(){
        return $this->render();
    }
}